package com.mine.modules.vm.domain.vo;

import cn.hutool.core.date.DateUtil;
import lombok.Data;

import java.util.Date;

/**
 * @Author xu
 * @Date 2025/1/22
 **/
@Data
public class SensorValue {

    private long ts;

    private String date;

    private String dataValue;

    public SensorValue(long ts, String dataValue) {
        this.ts = ts;
        this.dataValue = dataValue;
        this.date = DateUtil.format(new Date(ts), "yyyy-MM-dd HH:mm:ss");
    }

}
